package com.zhangji.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @Description: 主启动类
 * @Author: Zhang Ji
 * @Date: 2021/6/23 16:09
 * Created by IntelliJ IDEA.
 */
@EnableEurekaClient
@SpringBootApplication(scanBasePackages = {"com.zhangji.springcloud.service","com.zhangji.springcloud"})
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.zhangji.springcloud.service"})
// ZJTODO: 2021/6/25 通过@EnableFeignClients注解引入Feign
public class FeignDeptConsumer_80 {
    public static void main(String[] args) {
        SpringApplication.run(FeignDeptConsumer_80.class,args);
    }
}
